{% load main_tags %}
<div class="todo {%if entity.done%}done{%endif%} " id='{{entity.id}}'>
	<div class='enactions'>
		<div style='margin-right: 30px;'>
				<a href="javascript://" class="focus enbutton" class='enremove'>Remove</a>
				<a href="javascript://" class="focus enbutton" class='enrestore'>Restore</a>
		</div>
	</div>
	<span class="todoleft">
		<input type='checkbox' value='1' {%if entity.done%}checked{%endif%}>
{%autoescape off%}
{%if entity.category%}
{{entity.priority|getpri:entity.category.geticon}}
{%else%}
{{entity.priority|getpri}}
{%endif%}
{%endautoescape%}
</span>
<div class='todocontent right' title="{{entity.title}}">
	<a href="javascript://">{{entity.title|slice:":45"}}{%if entity.title|length > 45%}...{%endif%}</a> 
<br />
<span class="mini quiet">
{%autoescape off%}
{%endautoescape%}
	{{entity.datetime|date}} {{entity.datetime|time}}</span>
</div>
</div>
